<%-- 
    Document   : stage2
    Created on : Jan 28, 2010, 11:14:04 AM
    Author     : nsjw7
--%>
<%@ page import="com.connexience.server.api.*" %>
<%@ page import="com.connexience.client.api.impl.*" %>
<%@ page import="java.net.*" %>
<%@ page import="java.util.*" %>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>MashMyData Portal - Files and Workflows</title>
    </head>
    <body>

        <img src="images/MMD_logo_v0.1.png" alt="MashMyData banner" height="100px"/>
        <a href="<c:url value="/j_spring_security_logout"/>">Logout</a>
        <br>
        <hr>
        ${userName} is logged on <br/><br/>

        <form name="workflowForm" method="get" action="/MMDPortal/mmd">
            <b>Workflows:</b><br/><br/>

            <c:forEach var="workflow" items="${workflows}">
                <input type="radio" name="workflow" value="${workflow.value}"/>${workflow.key}<br/>
            </c:forEach>

            <br/><b>Home Folder contents:</b><br/><br/>

            <c:forEach var="document" items="${documents}">
                <input type="checkbox" name="file" value="${document.value}"/>${document.key}<br/>
            </c:forEach>

            <br/><b>Available Model Data:</b><br/><br/>
            <input type="radio" name="model" value="dods://apdrc.soest.hawaii.edu/dods/public_data/SODA/soda_pop1.4.3"/>SODA POP v1.4.3 Global Ocean Model (Jan 2000 - Dec 2004)<br/>

            <br/><input type="submit" name="request" value="Run Workflow">
            <br/><input type="submit" name="request" value="Run DIVA Interpolation. Get Map Image">
            <br/><input type="submit" name="request" value="Run DIVA Interpolation. Get Netcdf of field">
            <br/>
            <br/><input type="submit" name="request" value="Delete File" onclick="javascript:return (confirm('Are you sure that you want to delete this file?'));">
            <br/><input type="submit" name="request" value="Download File">
            <br/>
            <br/><input type="submit" name="request" value="Show Valid Model Depths at Obs Location">
            <br/><input type="submit" name="request" value="Show Model - Obs Timeseries Plot">
                at depth: <input type="text" size="5" name="elevation"> (defaults to shallowest depth if left blank)
            <br/><input type="submit" name="request" value="Create and Save Profile Timeseries CSV">
            <br/><input type="submit" name="request" value="Contour Depth-Time Plot">
                to a deepest depth of: <input type="text" size="5" name="deepestContourDepth"> (defaults to all available depths if left blank)
            <br/><input type="submit" name="request" value="Filled Block Depth-Time Plot">
                to a deepest depth of: <input type="text" size="5" name="deepestBlockDepth"> (defaults to all available depths if left blank)
            <br/><input type="submit" name="request" value="Generate KML (e.g for Google Earth)">
            <br/><input type="submit" name="request" value="Flot Model - Obs Timeseries Plot">
                at depth: <input type="text" size="5" name="flotElevation"> (defaults to shallowest depth if left blank)

        </form>

        <form name="uploadForm" enctype="multipart/form-data" method="post" action="/MMDPortal/mmd?request=upload">
            <br/><br/>Upload a file: <input type="file" name="fileUpload">
            <input type="submit" value="Upload File" name="fileUploadButton">
        </form>
       
    </body>
</html>
